.dou-works {
  width: 100%;
  height: 100vh;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  .works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    .works-item {
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      aspect-ratio: 3/4;
      position: relative;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      :global {
        .nut-video {
          width: 100%;
          height: 100%;
        }
      }

      .works-title {
        position: absolute;
        left: 12px;
        top: 12px;
        color: #fff;
        font-size: 12px;
        flex: 1;
        margin-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .works-info {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 9;

        .download-button {
          width: 32px;
          height: 32px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: #fff;
          cursor: pointer;

          &:active {
            opacity: 0.8;
          }
        }
      }
    }
  }
  .video-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;

    .play-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: #333;
    }
  }

  .video-mask-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }

  .bottom {
    height: 200px;
  }
}
